/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.operation.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 质押需求
 *
 * @author baogs
 * @date 2022-07-01 11:13:17
 */
@Data
@TableName("opt_pledge_demand")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "质押需求")
public class PledgeDemand extends Model<PledgeDemand> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value = "id")
	private Long id;

	/**
	 * 质押藏品id
	 */
	@ApiModelProperty(value = "质押藏品id")
	private Long spuId;

	/**
	 * 计划质押数量
	 */
	@ApiModelProperty(value = "计划质押数量")
	private Integer plantAmount;

	/**
	 * 起押数
	 */
	@ApiModelProperty(value = "起押数")
	private Integer minAmount;

	/**
	 * 实际质押数
	 */
	@ApiModelProperty(value = "实际质押数")
	private Integer actualAmount;

	/**
	 * 质押期限
	 */
	@ApiModelProperty(value = "质押期限")
	private Integer timeLimit;

	/**
	 * 收益碎片
	 */
	@ApiModelProperty(value = "收益")
	private Integer income;

	/**
	 * beginTime
	 */
	@ApiModelProperty(value = "开始时间")
	private LocalDateTime beginTime;

	/**
	 * endTime
	 */
	@ApiModelProperty(value = "结束时间")
	private LocalDateTime endTime;

	/**
	 * isPublished
	 */
	@ApiModelProperty(value = "是否发布")
	private Boolean isPublished;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value = "创建人")
	private Long createBy;

	/**
	 * 修改人
	 */
	@ApiModelProperty(value = "修改人")
	private Long updateBy;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@ApiModelProperty(value = "修改时间")
	private LocalDateTime updateTime;


	/**
	 * delFlag
	 */
	@TableLogic(value = "0", delval = "1")
	@ApiModelProperty(value = "删除状态")
	private String delFlag;


}
